package com.stars.base.constants;

/**
 * @author : Rocks
 * @version : 1.0
 * @date : 2022/11/25 12:25
 * @description : Redis常量
 */
public class RedisConstants {

    /**
     * Redis存储RSA公钥和私钥相关Key
     */
    public static final String STAR_LOGIN_RSA = "STAR_RSA_KEY";
    /**
     * Redis存储验证码前缀
     */
    public static final String CAPTCHA_PREFIX = "captcha:";

    /**
     * Redis存储session统一目录
     */
    public static final String SESSION_PREFIX = "session:";

    /**
     * 存储用户id和sessionId映射
     */
    public static final String SESSION_USER_PREFIX = "session:user:";

    /**
     * 动态路由
     */
    public static final String ROUTER_PREFIX = "router:";

    /**
     * 菜单前缀
     */
    public static final String MENU_PREFIX = "menu:";

    /**
     * 系统设置存储Redis前缀
     */
    public static final String SETTING_PREFIX = "system-config:";

    /**
     * 单位设置存储Redis前缀
     */
    public static final String UNIT_SETTING_PREFIX = "unit-config:";

    /**
     *  个人设置存储redis前缀
     */
    public static final String USER_SETTING_PREFIX = "user-config:";

    /**
     *  数据代码缓存
     */
    public static final String STAR_CODE_PREFIX = "star-code:";

    /**
     *  session默认在线时长
     */
    public static final String DEFAULT_ONLINE = "600";

}
